﻿//***********************************************************************
// * Module:   TbBstFastprocessDetail
// * 作者:  曹荣芝
// * Modified: 2013-05-09
// * Purpose: Definition of the Class TbBstFastprocessDetail
// ***********************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using XWG;
using XWG.JWBST;
using XWG.JWBST.JWBSTEntity;
using XWG.JWBST.JWBSTBLL;
using XWG.JWBST.JWBSTSPConst;
using XWG.Framework.MSException;
using System.Data;
namespace JWBSTAPP
{
    public partial class TbBstFastprocessDetail : JWBSTAPP.CommonClass.PageBases
    {
        public static string imgliststr = string.Empty;
        public static string sountpath = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            imgliststr = "";
            sountpath = "";
            if (!IsPostBack)
            {
                if (Request["id"] != null)
                {
                    var id = Request["id"].ToString();//guid
                    var model = TbBstFastprocessBLL.Load(id);
                    if (model != null)
                    {
                        var imglist = TbBstFastprocessFileBLL.GetPicByLSH(model.FastLsh);//model.FastId
                        //imgliststr = "";//html
                        foreach (var i in imglist)
                        {
                            imgliststr += "<li><a class=\"seriesLightbox\" href=\"" + i.Upfile + "\"><img style=\"height: 300px;width: 300px;\" src=\"" + i.Upfile + "\" /></a> </li>";
                        }
                        sountpath = model.FastSound;
                    }
                }
                this.LoadComplete += new EventHandler(this.BasePage_Load);
            }
        }
    }
}


